Skip to content

fix(hub-ui): leave palette Enter to the input method during composition - #507

Draft
SaKaNa-Y wants to merge 1 commit into
devframes:mainfrom
SaKaNa-Y:fix/palette-composition-enter
Draft

SaKaNa-Y wants to merge 1 commit into
devframes:mainfrom
SaKaNa-Y:fix/palette-composition-enter

Conversation

@SaKaNa-Y

Copy link
Copy Markdown
Member

Summary

When a developer presses Enter to confirm text in the command palette, the browser can report that an input method is still composing. With a result selected, the palette cancels that key and runs the highlighted command.

 Enter in the palette search field
+  If the input method is composing, leave Enter to the input method.
   Otherwise, activate the selected result.

Evidence

  • Before: In standalone Chrome, confirming text invoked the selected server command once and closed the palette. Chrome marked the Enter event as composing.
    After: The same browser check left Enter uncanceled, kept the palette open and recorded zero calls. After text composition ended, a fresh Enter ran the command once.
  • The embedded viewer regression test checks that the palette leaves the default action available and keeps focus. A subsequent ordinary Enter opens Settings. The test failed on the original handler and passed on the fix.

Merge Danger

Door: Two-way. Reverting restores the previous Enter behavior.

Blast Radius: Keyboard. The embedded and standalone viewers share the palette handler.

@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

@SaKaNa-Y is attempting to deploy a commit to the NuxtLabs Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

👁️‍🗨️ Review this pull request with grouped, summarized diffs at:
👉 https://pulls.review/gh/devframes/devframe/507?from=github-actions[bot]

raw result

💭 analyzed by vercel-ai-gateway/anthropic/claude-sonnet-5
🕰️ 2026-11-22 12:58 UTC
🔗 head 7c0c98a
🤖 automated by pulls.review

{
  "headSha": "7c0c98a4071862c71da1ce0b53b66529ac4910d1",
  "result": {
    "overallSummary": "Fixes a bug where pressing Enter to confirm IME-composed text in the command palette would incorrectly trigger the selected command instead of letting the input method finish composition. Includes an e2e test reproducing the regression.",
    "groups": [
      {
        "key": "fix-ime-enter",
        "label": "Fix Enter handling during IME",
        "summary": "Ignore the Enter keydown while an input method is still composing, so composed text isn't accidentally submitted as a command in the palette.",
        "category": "ui",
        "filePaths": [
          "packages/hub-ui/src/client/components/command-palette/CommandPalette.vue"
        ],
        "critical": true
      },
      {
        "key": "e2e-test",
        "label": "E2E regression test",
        "summary": "Adds a Playwright test that simulates a composing Enter keypress to verify the palette stays open and focused, then confirms a normal Enter still triggers the selected command.",
        "category": "tests",
        "filePaths": [
          "tests/e2e/floating-dock.spec.ts"
        ]
      }
    ],
    "schemaVersion": 1,
    "source": "llm",
    "generatedAt": "2026-11-22T12:58:16.867Z",
    "model": "vercel-ai-gateway/anthropic/claude-sonnet-5",
    "locale": "en"
  }
}

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant